import {pget, ppostJson} from '@/utils/req'
import {modalApi} from '@/utils/modalReq'

/**
 * 司机结算汇总列表
 * @param query
 * @returns
 */
export async function getSummaryListPage(query: any): Promise<any> {
	return pget(
		`${modalApi.marketing}/marketingsettlementdriver/summaryListPage`,
		query,
	)
}

/**
 * 司机结算汇总详情
 * @param query
 * @returns
 */
export async function getSummaryDetail(query: any): Promise<any> {
	return pget(`${modalApi.marketing}/marketingsettlementdriver/detail`, query)
}

/**
 * 司机结算汇总详情
 * @param query
 * @returns
 */
export async function getSummaryDetailPage(query: any): Promise<any> {
	return pget(`${modalApi.marketing}/settlementawarddetails/page`, query)
}

/**
 * 明细列表输入备注
 * @param query
 * @returns
 */
export async function getSummaryupdate(query: any): Promise<any> {
	return ppostJson(
		`${modalApi.marketing}/marketingsettlementdriver/update`,
		query,
	)
}
